﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Nissen_Common;
using Nissen_Model.Dto;

namespace Nissen_Manage.Forms
{
	public partial class SSOMapViewManage : Form
	{
		public SSOMapViewManage()
		{
			InitializeComponent();
		}

		private void SSOMapViewManage_Load(object sender, EventArgs e)
		{
			SSOMapViewService ssoMapViewService = new SSOMapViewService();

			IList<WorkerMap> workerMaps =  ssoMapViewService.GetWorkerMap();

			BindingDgvSSOMap(workerMaps);
		}

		private void BindingDgvSSOMap(IList<WorkerMap> workerMaps)
		{
			this.dgvSSOMap.AutoGenerateColumns = false;

			this.dgvSSOMap.DataSource = new BindingCollection < WorkerMap > (workerMaps);

		}

		
	}
	
	
}
